/*
 * Filename : ExclusionWatcher.java
 * Description : **COMPLETE**
 * History  : Date               Engineer       Description
 *            ---------          ------------   --------------------------------
 *            September 25, 2007      waitek         Initial creation.
 */

package com.lct.eq2.watchers;

import com.lct.eq2.data.DataHandler;

public class ExclusionWatcher extends Thread implements Runnable {
    private DataHandler parent = null;
    private String attackName = null;
    
    /** Creates a new instance of ExclusionWatcher */
    public ExclusionWatcher(DataHandler parent, String attackName) {
        this.parent = parent;
        this.attackName = attackName;
        this.start();
    }
    
    public void run() {
        try {
            this.sleep(12000);
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        }
        //System.out.println("Removing " + this.attackName + " from exclusion period.");
        this.parent.removeFromExclusionPeriod(this.attackName);
    }
    
}
